class AddFieldsNoteEtcToPeople < ActiveRecord::Migration
  def self.up
    change_table :people do |p|
      p.string :country, :limit => 30, :null => false
      p.string :note, :limit => 200, :null => true
      p.string :occupation, :limit => 50, :null => true
      p.datetime :born_date, :null => false
    end
  end

  def self.down
    change_column :people do |p|
      p.remove :country
      p.remove :note
      p.remove :occupation
      p.remove :born_date
    end
  end
end
